<template>
    <div id="rich"></div>
  </template>
  
  <script setup>
  import { onMounted, onUnmounted } from "vue";
  import * as echarts from "echarts";
  let myRich = null;
  let myEchart = null;
  onMounted(() => {
    myRich = document.getElementById("rich");
    myEchart = echarts.init(myRich);
    let option = {
        tooltip: {},
        radar: {
            // shape: 'circle',
            indicator: [
                {
                    name: '发育',
                    value: 10
                },
                {
                    name: '参团',
                    value: 10
                },
                {
                    name: '辅助',
                    value: 10
                },
                {
                    name: '推塔',
                    value: 10
                },
                {
                    name: '存活',
                    value: 10
                },
            ]
        },
        series: [
            {
                type: 'radar',
                data: [
                    {
                        name: 'summer',
                        value: [5,7,8,9,3]
                    }
                ]
            }
        ]
    };
    myEchart.setOption(option);
  });
  onUnmounted(() => {
    myEchart.dispose(myRich);
  });
  </script>
  
  <style lang="less" scoped>
  #rich {
    width: 800px;
    height: 400px;
  }
  </style>
  